import React  from 'react';
import { useHistory } from 'react-router-dom'

import NavHead from '@/Lessonpre/components/NavHead'
import Keplate from './Keplate'
import { KeDiv,ButtonDiv } from './Kestyled'

const KeUi =(props)=> {
    let history = useHistory()
    return (
        <KeDiv>
            <NavHead title={'课件预览'}></NavHead>
            <Keplate {...props}></Keplate>
            <ButtonDiv onClick={ ()=> history.push('/home')}>确认布置</ButtonDiv>
        </KeDiv>
    );
}

export default KeUi;